package gemini.pollux.batch.sumpoint;

import gemini.basic.batch.GmnJob;
import gemini.basic.manager.DistributorManager;
import gemini.basic.manager.ShoppingManager;

import org.quartz.JobExecutionContext;

public class PointJob extends GmnJob{
	private DistributorManager distributorManager;

	public void setDistributorManager(DistributorManager distributorManager) {
		this.distributorManager = distributorManager;
	}

	@Override
	protected boolean executeImpl(JobExecutionContext context) {
		distributorManager.sumPoint();
		return true;
	}

	@Override
	protected String getBatchName() {
		return "Point";
	}
}
